home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscClassDecoderPalette / MiscClassDecoder.subproj / MiscClassDecoder.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-26  |  1.2 KB  |  51 lines

  1. //
  2. // Time-stamp: <94/11/26 18:02:33 stephan>
  3. //
  4. //    MiscClassDecoder.h -- an Object subclass that is able to analyze
  5. //    the definition of an Objective-C class.
  6. //    
  7. //        Written by Stephan Wacker <stephan@rodion.muc.de>
  8. //        Copyright (c) 1994 by Stephan Wacker.
  9. //        Version 1.0  All rights reserved.
  10. //
  11. //        This notice may not be removed from this source code.
  12. //
  13. //    This object is included in the MiscKit by permission from the author
  14. //    and its use is governed by the MiscKit license, found in the file
  15. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  16. //    for a list of all applicable permissions and restrictions.
  17. //    
  18.  
  19.  
  20. // Change this version number whenever you modify any instance variables!
  21. //
  22. #define K_MiscClassDecoderVersion    1
  23.  
  24.  
  25. // Define the archived fields:
  26. //
  27. #define K_MiscClassDecoderRWformat_V1    "@@"
  28. #define K_MiscClassDecoderRWvars_V1    &classNameField, &text
  29.  
  30.  
  31. #import <appkit/appkit.h>
  32.  
  33.  
  34. @interface MiscClassDecoder : Object
  35. {
  36.     id        classNameField;
  37.     id        text;
  38.     
  39.     int        indent;        // indent depth in characters
  40.     BOOL    bol;        // beginning of line
  41.  
  42.     int        lineCount;
  43. }
  44.  
  45. - analyze: sender;
  46. - list: sender;
  47.  
  48. - analyzeClass: (const char *) className;
  49.  
  50. @end    // MiscClassDecoder
  51.